//
//  returnMoneyResultVC.m
//  jiaKaoZhuShou
//
//  Created by 金艺社 on 2018/5/23.
//  Copyright © 2018年 金艺社. All rights reserved.
//

#import "returnMoneyResultVC.h"

@interface returnMoneyResultVC ()

@end

@implementation returnMoneyResultVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.history_btn.layer.masksToBounds = YES;
    self.history_btn.layer.cornerRadius = 15;
    self.history_btn.layer.borderColor = [UIColor custom_color:@"#A91E23"].CGColor;
    self.history_btn.layer.borderWidth = 1;
    
    self.confirm_btn.layer.masksToBounds = YES;
    self.confirm_btn.layer.cornerRadius = 15;
    
    if ([_type isEqualToString:@"充值成功"]) {
        self.title = @"充值记录";
        [self.history_btn setTitle:@"查看明细" forState:0];
        [self.confirm_btn setTitle:@"立即还款" forState:0];
        self.result_lab.text = @"恭喜，充值成功!";
        //VC.picture_imgV.image = [UIImage imageNamed:@""];
    }else if ([_type isEqualToString:@"还款"]) {
        self.title = @"还款结果";
        [self.history_btn setTitle:@"还款记录" forState:0];
        [self.confirm_btn setTitle:@"确认" forState:0];
        self.result_lab.text = @"恭喜，还款成功！";
        //VC.picture_imgV.image = [UIImage imageNamed:@""];
    }else if ([_type isEqualToString:@"充值失败"]) {
        
    }
}
- (void)setType:(NSString *)type {
    _type = type;
}
- (IBAction)historyClick:(id)sender {
    
}
- (IBAction)confirmClick:(id)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
